package kylin.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * <p>Class Name : DocInterfaceParams</p>
 * <p>Class Desc : 接口文档方法参数表</p>
 * <p>Date : 2015-11-5 上午12:17:36</p>
 * <p>Author : XQL</p>
 */
@Entity
@Table(name="doc_interface_params")
public class DocInterfaceParams {

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	
	private String name;//参数名
	
	private String type;//类型
	
	private byte isnull;//是否为空[0为null、1不为null] 
	
	private String none;//默认值
	
	private String descs;//描述
	
	private byte genre;//参数种类[0请求参数 1返回参数]
	
	@ManyToOne
	@JoinColumn(name="method_id",nullable=false)
	private DocInterfaceMethod docInterfaceMethod;//接口方法

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public byte getIsnull() {
		return isnull;
	}

	public void setIsnull(byte isnull) {
		this.isnull = isnull;
	}

	public String getNone() {
		return none;
	}

	public void setNone(String none) {
		this.none = none;
	}

	public String getDescs() {
		return descs;
	}

	public void setDescs(String descs) {
		this.descs = descs;
	}

	public byte getGenre() {
		return genre;
	}

	public void setGenre(byte genre) {
		this.genre = genre;
	}

	public DocInterfaceMethod getDocInterfaceMethod() {
		return docInterfaceMethod;
	}

	public void setDocInterfaceMethod(DocInterfaceMethod docInterfaceMethod) {
		this.docInterfaceMethod = docInterfaceMethod;
	}

}
